<ion-view view-title="我的帐户" need-login hide-tabs="false" ng-class="{true: 'animated bounceIn', false: ''}[tabAnimation]"
          tab-animation>
    <ion-header-bar align-title="center" class="bar-positive bar-header-black">
           <div class="buttons">
	 <button class="button button-icon icon ion-navicon" ng-click="toggleLeft()"></button>					
    </div><h1 class="title">我的帐户</h1>
	
	  <div class="buttons">
      <button class="button button-icon icon ion-navicon" ng-click="toggleLeft()"></button>
  </div>
  
        <div class="buttons">
            <!--
            <a class="button button-icon icon ion-ios-telephone-outline" href="http://www.xinsrc.com"></a>-->
        </div>
    </ion-header-bar>
    <ion-content>
        <ion-refresher pulling-text="下拉刷新用户信息..." on-refresh="doRefresh()"></ion-refresher>
        <ion-list>
            <ion-item class="item-thumbnail-left">
                <img ng-src="{{user.headImg}}" style="border-radius: 40px;" ngf-select="upload($file)" ng-model="file" name="file" ngf-pattern="'image/*'"
                     ngf-accept="'image/*'" ngf-max-size="20MB" ngf-min-height="100"
                     ngf-resize="{width: 200, height: 200}">
                <div style="padding-top: 18px;">
                   <h2 class="ng-binding" style="  margin-left: 1.5rem; ">{{user.nickName}}</h2>
                    <p></p>
                    <p>
                        <img src="img/gold.png" width="15" height="15">
                        <span class="act-balance"><strong style="color:darkorange">微币:{{user.money}}</strong></span>
                    </p>
                     <p>
                        <img src="img/gold.png" width="15" height="15">
                        <span class="act-balance"><strong style="color:darkorange">佣金:{{user.water ? user.water : 0}}</strong></span>
                    </p>
                </div>
<!--                <div class="button" ngf-select ng-model="file" name="file" ngf-pattern="'image/*'"
                     ngf-accept="'image/*'" ngf-max-size="20MB" ngf-min-height="100"
                     ngf-resize="{width: 100, height: 100}">上传头像</div>-->
            </ion-item>
            <ion-item class="row">
                <div class="col text-center" ui-sref="tab.rooms">HOME首页</div>
               <!-- <div class="col text-center" ui-sref="tab.share">邀请有礼</div> -->
                <div class="col text-center" ui-sref="tab.account-recharge">微币充值</div>
            </ion-item>
            <ion-item class="item-divider"></ion-item>
            <ion-item class="item-icon-left item-icon-right" ui-sref="tab.account-manager">
                <i class="icon ion-person"></i>
               		 帐号管理<span style="font-size: 14px;color:orangered;font-weight: bold;">：( ID:{{user.id}} )</span>
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
			

            <ion-item ng-if="user.userType=='2'" class="item-icon-left item-icon-right" ui-sref="tab.account-proxy">
                <i class="icon ion-person-add"></i>
                我是代理
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>

            <ion-item ng-if="user.userType=='1'" class="item-icon-left item-icon-right" ui-sref="tab.account-proxy-apply">
                <i class="icon ion-person-add"></i>
                申请代理
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
            
			<ion-item  class="item-icon-left item-icon-right" ui-sref="tab.share">
                <i class="icon ion-person-add"></i>
                	邀请有礼
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
            
            <ion-item  class="item-icon-left item-icon-right" ui-sref="tab.sharedetail">
                <i class="icon ion-person-add"></i>
                	佣金明细
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
            

            <ion-item class="item-divider"></ion-item>
            <ion-item class="item-icon-left item-icon-right" ui-sref="tab.account-rooms">
                <i class="icon ion-home"></i>
                <div class="clearfix">
                    <span style="float: left;">我的房间(<span ng-bind="roomCount ? roomCount : 0">0</span>)</span>
                    <span class="item-note room-note" ng-if="roomCount > 0">看看房间收益</span>
                    <span class="item-note room-note" ng-if="!roomCount">申请房间，就可赚钱!</span>
                </div>
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
            <!--www.xinsrc.com 技术 支持  QQ：2836 70641-->
			
            <!--
            <ion-item class="item-icon-left item-icon-right" ui-sref="tab.history">
                <i class="icon ion-magnet"></i>
                房间收藏
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
            -->
            <ion-item class="item-divider"></ion-item><!--
            <ion-item class="item-icon-left item-icon-right" ui-sref="tab.account-lottery-detail">
                <i class="icon ion-android-hand"></i>
                游戏记录
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>-->
            <ion-item class="item-icon-left item-icon-right" ui-sref="tab.account-bonus-detail">
                <i class="icon ion-ios-star"></i>
                红包记录
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
            <ion-item class="item-icon-left item-icon-right" ui-sref="tab.account-bonus03-detail">
                <i class="icon ion-ios-game-controller-b-outline"></i>
                二八记录
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>

            <ion-item class="item-divider"></ion-item>
            <!--
            <ion-item class="item-icon-left item-icon-right" ui-sref="tab.account-recharge-history">
                <i class="icon ion-card"></i>
                充值记录
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>-->

            <ion-item class="item-icon-left item-icon-right" ui-sref="tab.account-rechargeAndWithdraw">
                <i class="icon ion-card"></i>
                充值提现
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
            <ion-item class="item-icon-left item-icon-right" ui-sref="tab.account-transfer">
                <i class="icon ion-arrow-return-right"></i>
                微币转账
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
			<ion-item class="item-icon-left item-icon-right" ui-sref="tab.account-exchange">
               <i class="icon ion-bag"></i>
                礼品兑换记录
                <i class="icon ion-ios-arrow-right item-note"></i>
            </ion-item>
            <ion-item class="item-divider"></ion-item>
            <ion-item class="item-icon-left item-icon-right" ng-click="logout()">
               <i class="icon ion-log-out"></i>
                注销退出
                <i class="icon ion-ios-arrow-right item-note"></i>
			</ion-item>
        </ion-list>
    </ion-content>
</ion-view>
